package com.dgut.demo.mapper;

import com.dgut.demo.bean.PurchaseMessage;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Auther 虎
 * @Data 2021/2/23 21:10
 * @Version 1.0
 */
@Repository
public interface PurchaseMapper {
    List<PurchaseMessage> getAllPurchaseMessage();
    List<PurchaseMessage> getPurchaseMessageByPid(String pid);
    List<PurchaseMessage> getPurchaseMessageByPsid(String psid);
    List<PurchaseMessage> getPurchaseMessageByEname(String ename);
    List<PurchaseMessage> getPurchaseMessageByMaterial(String material);
    int addOnePurchaseMessage(PurchaseMessage purchaseMessage);
}
